package minijvm.loader;

public class HourlyEmployee extends EmployeeV2 {

    int hourlySalary;

    public HourlyEmployee(final String name, final int age, final int hourlySalary) {
        super(name, age);
        this.hourlySalary = hourlySalary;
    }

    @Override
    public void sayHello() {
        System.out.println("Hello , this is Hourly Employee");
    }

    public static void main(final String[] args) {
        final EmployeeV2 e = new HourlyEmployee("Lisa", 20, 40);
        e.sayHello();
    }

    public int getHourlySalary() {
        return this.hourlySalary;
    }
}
